<%--
  Created by IntelliJ IDEA.
  User: 25673
  Date: 2022/9/22
  Time: 19:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>审核实名信息</title>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
  <link rel="stylesheet" href="css/dashboard.css" />
  <script type="text/javascript" src="js/jquery1.12.4.min.js" ></script>
  <script type="text/javascript" src="js/bootstrap.min.js" ></script>
  <script type="text/javascript" src="js/countUp.js" ></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">众筹管理平台</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="index.jsp">首页</a></li>
        <li><a href="#">欢迎, ${manage.mname}</a></li>
        <li><a href="#" title="修改个人资料和密码的页面">设置</a></li>
        <li><a href="admin_login.jsp" title="退出登录">退出</a></li>
        <style>
          span{
            color: #00a0df;
          }
        </style>
        <script>
          $(document).ready(function () {
            $(".pass").click(function () {
              var tds = $(this).parent().siblings()
              var rno = $(tds[0]).text()
              var uno = $(tds[1]).text()
              window.location.href="/admin/passReal?rno="+rno+"&uno="+uno;
            })
            $(".nopass").click(function () {
              window.location.href="/admin/nopassReal?rno="+rno+"&uno="+uno;
            })
          })
        </script>
      </ul>
    </div>
  </div>
</nav>
<div class="container-fluid">
  <div class="row">
    <div class="col-sm-3 col-md-2 sidebar">
      <ul class="nav nav-sidebar">
        <li ><a href="index.jsp">首页</a></li>
      </ul>
      <ul class="nav nav-sidebar">
        <li><a href="/projectManagement/getAll">所有项目</a></li>
        <li><a href="/projectManagement/getAllNoPro">项目审核</a></li>

        <li><a href="/projectManagement/getAllComment">项目评论</a></li>
        <li><a href="/projectManagement/getAllType">项目分类</a></li>

      </ul>
      <ul class="nav nav-sidebar">
        <li><a href="/admin/getUsersByCon">注册用户</a></li>
        <li><a href="/admin/getUsersMoney">用户资金</a></li>
        <%--<li><a href="">用户日志</a></li>--%>
        <li class="active"><a href="/admin/getUsersReal">实名审核</a></li>
      </ul>
      <ul class="nav nav-sidebar">
        <li><a href="/admin/getNews">新闻管理</a></li>
        <li><a href="/admin/getQuestion">问题管理</a></li>
        <li><a href="/admin/admin_manage.jsp">管理用户</a></li>
        <%--<li><a href="">管理日志</a></li>--%>
      </ul>
    </div>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
      <h1 class="page-header">用户实名信息</h1>
      <div class="panel panel-default">
        <div class="panel-heading">
          <div class="panel-title">
            所有用户
          </div>
        </div>
        <div class="panel-body">
          <div class="table-responsive ">
            <table class="table table-striped table-bordered">
              <thead>
              <tr>
                <th>编号</th>
                <th>用户名</th>
                <th>姓名</th>
                <th>身份证号</th>
                <th>实名状态</th>
                <th>操作</th>
              </tr>
              </thead>
              <tbody>
              <c:forEach items="${pageinfo.list}" var="real">
                <tr>
                  <td>${real.rno}</td>
                  <td>${real.user.uname}</td>
                  <td>${real.rname}</td>
                  <td>${real.ID}</td>
                  <td>${real.status==1?"待审核":real.status==2?"不通过":real.status==3?"已通过":""}</td>
                  <td>
                    <c:if test="${real.status==1}">
                      <a href="/admin/passReal?rno=${real.rno}&uno=${real.user.uno}">通过</a>
                      <a href="/admin/nopassReal?rno=${real.rno}&uno=${real.user.uno}">不通过</a>
                    </c:if>
                  </td>
                </tr>
              </c:forEach>
              </tbody>
            </table>
          </div>

          <nav aria-label="Page navigation" class="text-right">
            <ul class="pagination">
              <h3>当前页:${pageinfo.pageNum}</h3>
              <c:if test="${!pageinfo.isFirstPage}">
                <li><a href="/admin/getUsersReal?&page=1">首页</a></li>
                <li><a href="/admin/getUsersReal?&page=${pageinfo.prePage}">上一页</a></li>
              </c:if>
              <c:forEach items="${pageinfo.navigatepageNums}" var="page">
                <li><a href="/admin/getUsersReal?&page=${page}">${page}</a> </li>
              </c:forEach>
              <c:if test="${!pageinfo.isFirstPage}">
                <li><a href="/admin/getUsersReal?&page=${pageinfo.nextPage}">下一页</a></li>
                <li><a href="/admin/getUsersReal?&page=${pageinfo.pages}">末页</a></li>
              </c:if>
            </ul>
          </nav>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>
